﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Users
{
    /// <summary>
    /// 普通用户修改密码DTO
    /// </summary>
    public class UpdateUserOrdinaryPwdDTO
    {
        /// <summary>
        /// 旧密码
        /// </summary>
        [Required(ErrorMessage = "旧密码不能为空")]
        [MaxLength(16, ErrorMessage = "旧密码不能大于16个字符")]
        [MinLength(6, ErrorMessage = "旧密码不能小于6个字符")]
        public string? OldPassword { get; set; }

        /// <summary>
        /// 新密码
        /// </summary>
        [Required(ErrorMessage = "新密码不能为空")]
        [MaxLength(16, ErrorMessage = "新密码不能大于16个字符")]
        [MinLength(6, ErrorMessage = "新密码不能小于6个字符")]
        public string? NewPassword { get; set; }
    }
}